import {useBigeMap} from '@/consts';

const importLoader = new Promise((resl, rej) => {
    if (!useBigeMap.value) {
        import('bmap-draw').then((mapDraw) => {
            // console.log('----- bmap-draw', mapDraw)
            resl(mapDraw)
        })
    } else {
        import('@/components/BigeMap/mapDraw.js').then((mapDraw) => {
            resl(window.BMapGLDraw||mapDraw.default)
        })
    }
});

export default importLoader